package Mora;

/**
 *
 * 电脑出拳
 */
public class Computer {

    int computer(){

        //随机生成电脑的名称：（曹操，孙权，刘备，西施，貂蝉，王昭君，杨贵妃）
        String[] comPuter = {"曹操","孙权","刘备","西施","貂蝉","王昭君","杨贵妃"};
        System.out.println("电脑出场: " + comPuter[(int)(Math.random() * 7 ) + 1]);

        int comQuan = (int)(Math.random() * 4);
//        System.out.println("电脑出拳：" + comQuan);

        return comQuan;
    }

//    public static void main(String[] args) {
//        Computer computer = new Computer();
//        computer.computer();
//    }
}
